<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>loading1</title>
    <link rel="stylesheet" href="css/style.css">
    <script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/1.6.4/jquery.js"></script>
	<style>
.loading {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 500;
    background: #fff;
}

.content {
    position: absolute;
    width: 80px;
    height: 80px;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    margin: auto;
}

.content span {
    display: block;
    float: left;
    height: 80px;
    width: 10px;
    margin: 0 3px;
    background: rgb(51, 255, 0);
    transform: scaleY(.4);
    -webkit-transform: scaleY(.4);
    -moz-transform: scaleY(.4);
    -ms-transform: scaleY(.4);
    -o-transform: scaleY(.4);
    animation: spin .8s linear infinite;
    -webkit-animation: spin .8s linear infinite;
}

img {
    width: 100%;
    margin: 20px 0;
}

.content span:nth-child(2) {
    animation-delay: 0.1s;
}

.content span:nth-child(3) {
    animation-delay: 0.2s;
}

.content span:nth-child(4) {
    animation-delay: 0.3s;
}

.content span:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes spin {
    0%,
    40%,
    100% {
        transform: scaleY(.4);
        -webkit-transform: scaleY(.4);
        -moz-transform: scaleY(.4);
        -ms-transform: scaleY(.4);
        -o-transform: scaleY(.4);
    }
    20% {
        transform: scaleY(1);
        -webkit-transform: scaleY(1);
        -moz-transform: scaleY(1);
        -ms-transform: scaleY(1);
        -o-transform: scaleY(1);
    }
}

@-webkit-keyframes spin {
    0%,
    40%,
    100% {
        transform: scaleY(.4);
        -webkit-transform: scaleY(.4);
        -moz-transform: scaleY(.4);
        -ms-transform: scaleY(.4);
        -o-transform: scaleY(.4);
    }
    20% {
        transform: scaleY(1);
        -webkit-transform: scaleY(1);
        -moz-transform: scaleY(1);
        -ms-transform: scaleY(1);
        -o-transform: scaleY(1);
    }
}

	
	</style>
</head>

<body>
    <div class="loading">
        <div class="content">
            <span></span>
            <span></span>
            <span></span>
            <span></span>
            <span></span>
        </div>
    </div>
    <header>
        <img src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1536477995653&di=9da1524f0d058439fece4225bb5d46be&imgtype=0&src=http%3A%2F%2Fattachments.gfan.com%2Fforum%2Fattachments2%2F201310%2F30%2F114329boo85697uuhhhu9u.jpg"
            alt="">
    </header>
    <section>
        <img src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1536477995653&di=9da1524f0d058439fece4225bb5d46be&imgtype=0&src=http%3A%2F%2Fattachments.gfan.com%2Fforum%2Fattachments2%2F201310%2F30%2F114329boo85697uuhhhu9u.jpg"
            alt="">
    </section>
    <footer>
        <img src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1536477995653&di=9da1524f0d058439fece4225bb5d46be&imgtype=0&src=http%3A%2F%2Fattachments.gfan.com%2Fforum%2Fattachments2%2F201310%2F30%2F114329boo85697uuhhhu9u.jpg"
            alt="">
    </footer>
</body>
<script>
    document.onreadystatechange=function(){
        if(document.readyState=="compelte")
        console.log(document.readyState)
        $(".loading").fadeOut();
    }
</script>
</html>